﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="UserRoundReport.aspx.cs" Inherits="ProjectSem40701.Admin.UserRoundReport" Title="Untitled Page" %>

<%@ Register Assembly="CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
    Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
    
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register assembly="Telerik.Web.UI, Version=2009.1.311.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" namespace="Telerik.Web.UI" tagprefix="telerik" %>


<asp:Content ID="Content1" ContentPlaceHolderID="title" runat="server">
    <title>Báo cáo vòng thi</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <!--
        set tab active here
     -->
    <script type="text/javascript" language="javascript">
        setTab(document.getElementById("6"));
    </script>
    <!--
        end set tab active
     -->
     <div id="box">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
         <asp:UpdatePanel ID="UpdatePanel1" runat="server">
             <ContentTemplate>
            <h3>Báo cáo vòng thi</h3>
                <fieldset>
                <legend>Chọn vòng thi</legend>
                <p>
                    <label>Chọn kỳ thi:</label>
                    <asp:DropDownList ID="cbbExam" runat="server" Width="120px" AutoPostBack="True" 
                        DataSourceID="ObjectDataSource2" DataTextField="ExamName" 
                        DataValueField="ExamID" ondatabound="cbbExam_DataBound" 
                        onselectedindexchanged="cbbExam_SelectedIndexChanged">
                    </asp:DropDownList>
                    <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" 
                        OldValuesParameterFormatString="original_{0}" 
                        SelectMethod="Get_tbl_Exam_Select_All" 
                        TypeName="ProjectSem40701.Admin.AdminXSD.ExamTableAdapters.tbl_ExamTableAdapter">
                    </asp:ObjectDataSource>
                </p>

                <p>
                    <label>Chọn vòng thi:</label>
                    <asp:DropDownList ID="cbbRound" runat="server" Width="120px" 
                        AutoPostBack="True" DataSourceID="ObjectDataSource3" DataTextField="RoundName" 
                        DataValueField="RoundID">
                    </asp:DropDownList>
                    <asp:ObjectDataSource ID="ObjectDataSource3" runat="server" 
                        OldValuesParameterFormatString="original_{0}" 
                        SelectMethod="Get_tbl_Round_Select_All_By_ExamID" 
                        TypeName="ProjectSem40701.Admin.AdminXSD.RoundTableAdapters.tbl_RoundTableAdapter">
                        <SelectParameters>
                            <asp:ControlParameter ControlID="cbbExam" Name="exid" 
                                PropertyName="SelectedValue" Type="Int32" />
                        </SelectParameters>
                    </asp:ObjectDataSource>
                </p>
                </fieldset>
            </ContentTemplate>
       </asp:UpdatePanel>
    </div>
    <div align="center">
        <asp:Button ID="btnOK" runat="server" Text="Hiển thị báo cáo" 
            onclick="btnOK_Click" />
    </div>
    <br />
    <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" 
    AutoDataBind="true" BestFitPage="False" Width="735px" 
        EnableDatabaseLogonPrompt="False" />
</asp:Content>
